Fix for position bug
authorMichael Emmel <mike.emmel@gmail.com>
Sat, 24 Oct 2009 15:17:06 +0000 (17:17 +0200)
committerJavier Jardón <jjardon@gnome.org>
Sat, 24 Oct 2009 15:20:50 +0000 (17:20 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=590800

gdk/directfb/gdkwindow-directfb.c

index 30ec834d18ea6fb8dd0e244d3596badeda032ecc..1cc943ec62875bdbf2ecd0c76592633d49a475f3 100644 (file)
@@ -1522,13 +1522,14 @@ gdk_directfb_window_move_resize (GdkWindow *window,
     }
   else if (impl->window)
     {
-      private->x = x;
-      private->y = y;
+      if (with_move) {
+        private->x = x;
+        private->y = y;
+        impl->window->MoveTo (impl->window, x, y);
+      }
       impl->drawable.width = width;
       impl->drawable.height = height;
 
-      if (with_move)
-        impl->window->MoveTo (impl->window, x, y);
       impl->window->Resize (impl->window, width, height);
     }
   else